←Select platform

LoadThumbnails(IEnumerable<string>,string,RasterThumbnailBrowserLoadFlags) Method

Summary

Browses the specified paths for supported images, and generates thumbnails for each image file that is found.

Syntax

C#
VB
C++
public void LoadThumbnails( 
   IEnumerable<string> paths, 
   string searchPattern, 
   RasterThumbnailBrowserLoadFlags flags 
) 
  
Public Overloads Sub LoadThumbnails( _ 
   ByVal paths As IEnumerable(Of String), _ 
   ByVal searchPattern As String, _ 
   ByVal flags As Leadtools.Winforms.RasterThumbnailBrowserLoadFlags _ 
)  
public: 
void LoadThumbnails(  
   IEnumerable<String^>^ paths, 
   String^ searchPattern, 
   Leadtools.Winforms.RasterThumbnailBrowserLoadFlags flags 
)  

Parameters

paths
The paths to browse. This can be a directories and files.

searchPattern
The search string to match against the names of files in path. The parameter cannot end in two periods ("..") or contain two periods ("..") followed by System.IO.Path.DirectorySeparatorChar or System.IO.Path.AltDirectorySeparatorChar, nor can it contain any of the characters in System.IO.Path.InvalidPathChars.

flags
An RasterThumbnailBrowserLoadFlags enumeration that can be a combination of the following:

Value Description
RasterThumbnailBrowserLoadFlags.None Default mode, the method will return immediatly and the thumbnails are loaded in a background thread.
RasterThumbnailBrowserLoadFlags.Block The method will not return until all thumbnails are loaded.
RasterThumbnailBrowserLoadFlags.OnlyValidImageFiles Only valid image files are loaded. Any file that contains data not recognized by the Codecs object as a valid image file will not be loaded.
Remarks

Use the LoadThumbnails(string,string,rasterthumbnailbrowserloadflags) method to populate the RasterThumbnailBrowser control with the thumbnails of image files found in the directory specified by path. The control will load the images in the following manner:

Example

This example will load two files and expands the multipage one.

 

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.WinForms Assembly